<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%><%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<tiles:insertDefinition name="layout">
	<tiles:putAttribute name="head">
		<script type="text/javascript">
			$(function() {
				//Validform库的应用
				$("form").Validform({
					ajaxPost : true,
					customReset : true,
					tiptype : ValidUtils.siblingTip,
					callback : function(data) {
						helper.showMsg(data);
					}
				});
			});
		</script>
	</tiles:putAttribute>
	<tiles:putAttribute name="mainBody">
		<ul class="breadcrumb">
			<li><a href="listUser">用户列表</a> <span class="divider">/</span></li>
			<li><a href="viewUser?id=${user.id}">查看用户</a> <span class="divider">/</span></li>
			<li class="active">修改密码</li>
		</ul>
		<form class="form-horizontal" action="doChangePwd">
			<input type="hidden" name="id" value="${user.id}" />
			<div class="control-group">
				<label class="control-label">名称 </label>
				<div class="controls">
					<input type="text" name="name" value="${user.name}" readonly="readonly" /> <span class="Validform_checktip"></span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">概述 </label>
				<div class="controls">
					<input type="text" name="title" value="${user.title}" disabled="disabled" /> <span class="Validform_checktip"></span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">
					旧密码<span style="color: #F00">*</span>
				</label>
				<div class="controls">
					<input type="password" name="oldPwd" datatype="required" /><span class="Validform_checktip"></span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">
					新密码<span style="color: #F00">*</span>
				</label>
				<div class="controls">
					<input type="password" name="newPwd" datatype="required" /><span class="Validform_checktip"></span>
				</div>

			</div>
			<div class="control-group">
				<label class="control-label">
					重新输入<span style="color: #F00">*</span>
				</label>
				<div class="controls">
					<input type="password" name="newPwd" datatype="equal()" /><span class="Validform_checktip"></span> <span
						class="help-block">重新输入和以上一致的密码进行确认</span>
				</div>
			</div>
			<div class="control-group">
				<div class="controls">
					<button type="submit" class="btn btn-primary">确认修改</button>
				</div>

			</div>
		</form>
	</tiles:putAttribute>
</tiles:insertDefinition>